<template>
  <el-table :data="tableData" border style="width: 100%">
    <el-table-column fixed prop="Phone" label="手机号码" align="center"></el-table-column>
    <el-table-column prop="SMScode" label="发送验证码" align="center"></el-table-column>
    <el-table-column prop="Platform" label="使用平台" align="center"></el-table-column>
    <el-table-column prop="CreateTime" label="生成日期" align="center"></el-table-column>
    <el-table-column prop="ExpiresTime" label="过期日期" align="center"></el-table-column>
  </el-table>
</template>

<script>
  import ChartApi from '../api/chartApi'
  export default {
  	created () {
    		this.getPhoneSMSRecord("18275352675")
    },
    data() {
      return {
        tableData: []
      }
    },
    methods: {
        getPhoneSMSRecord (phone) {
        		var _this = this
        		ChartApi.getPhoneSMSRecord(phone)
        		.then(function(res){
        			if(res.status == 200){
        				_this.tableData = res.data
        			}
        		}).catch(function(res){
        			if (res instanceof Error) {
		          window.console.log(res.message)
		        } else {
		          window.console.log(res.data)
		        }
        		});
        }
    }
  }
</script>